import axios from '../utils/axios';

export function find(searchForm){
    return axios.get('/emp/find',{
        params:searchForm
    })
}

export function add(emp){
    return axios.post('/emp/add',emp)
}

export function modifyStatus(id,status){
    return axios.get('/emp/modifyStatus',{
        params:{
            id,
            status
        }
    })
}

export function remove(id){
    return axios.get('/emp/remove',{
        params:{
            id
        }
    })
}

export function modify(emp){
    return axios.post('/emp/modify',emp)
}